\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{mymath}

%%=================定理样式=================%%
\RequirePackage{amsthm}%数学定理
%\RequirePackage[thmmarks]{ntheorem}
\RequirePackage{amssymb}%数学符号


%是否存在楷体字
\ifcsname kaishu\endcsname
    \newcommand{\citshape}{\kaishu}
\else
    \newcommand{\citshape}{\itshape}
\fi

%释放默认proof
\let\proof\relax
% \let\proofname\relax
\let\endproof\relax

% declare new theorem styles: defstyle, thmstyle, prostyle
\newtheoremstyle{defstyle}{3pt}{3pt}{\citshape}{-3pt}{
    \bfseries\color{main}}{}{0.5em}{\thmname{#1} \thmnumber{#2} \thmnote{(#3)}}
\newtheoremstyle{thmstyle}{3pt}{3pt}{\citshape}{-3pt}{
    \bfseries\color{second}}{}{0.5em}{\thmname{#1} \thmnumber{#2} \thmnote{(#3)}}
\newtheoremstyle{prostyle}{3pt}{3pt}{\citshape}{-3pt}{
    \bfseries\color{third}}{}{0.5em}{\thmname{#1} \thmnumber{#2} \thmnote{(#3)}}


\theoremstyle{thmstyle}\newtheorem{theorom}{定理}
\theoremstyle{thmstyle}\newtheorem*{theorom*}{定理}
\theoremstyle{defstyle}\newtheorem{definition}{定义}
\theoremstyle{defstyle}\newtheorem*{definition*}{定义}
\theoremstyle{prostyle}\newtheorem{proof}{证明}
\theoremstyle{prostyle}\newtheorem*{proof*}{证明}
\theoremstyle{prostyle}\newtheorem*{solution*}{解：}

\theoremstyle{defstyle}\newtheorem{example}{例题}
\theoremstyle{thmstyle}\newtheorem{exercise}{练习}
\theoremstyle{thmstyle}\newtheorem{problem}{问题}
\theoremstyle{prostyle}\newtheorem{answer}{答案}
\theoremstyle{prostyle}\newtheorem{note}{笔记}
